<% form_for(@precondicao) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :descricao %><br />
    <%= f.text_area :descricao %>
  </p>
  <p>
    <%= f.label :tipo_precondicao %><br />
    <%= collection_select(:precondicao, :tipo_precondicao_id, TipoPrecondicao.find(:all), :id, :descricao) %>
  </p>
  <p>
    <%= f.label :incentivo %><br />
    <%= collection_select(:precondicao, :incentivo_ids, Incentivo.find(:all), :id, :descricao, {}, {:multiple => true}) %>
  </p>
  <p>
    <%= f.label :ativo %><br />
    <%= f.check_box :ativo %>
  </p>
  <p>
    <%= f.submit "Salvar" %>
  </p>
<% end %>

<%= link_to 'Voltar', precondicoes_path %>
